package com.example.project.api.service;

import com.example.project.api.dto.GoodInfoDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.project.api.model.TbWin;
import com.example.project.api.mapper.TbWinMapper;

import java.util.List;
/**
 * @author: Jerry.Zhang
 * @date: 2022/9/22 14:23
 */
@Service
public class TbWinService extends ServiceImpl<TbWinMapper, TbWin> {

    @Autowired
    private TbWinMapper tbWinMapper;

    public List<GoodInfoDTO> getWinByIp(String ip){
        return tbWinMapper.getWinByIp(ip);
    }

}
